﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Corina.Common
{
    public static class EnumberableExtensions
    {
        public static object GetByIndex(this IEnumerable enumerable, int i)
        {
            int m = 0;
            foreach (object obj in enumerable)
            {
                if (m == i)
                    return obj;
                m++;
            }
            return null;
        }
    }
}
